package com.zyb.qiyu.user.provider.rpc;

import com.zyb.qiyu.live.common.interfaces.ConvertUtils;
import com.zyb.qiyu.user.dto.UserDTO;
import com.zyb.qiyu.user.interfaces.IUserRpc;
import com.zyb.qiyu.user.provider.dao.po.UserPO;
import com.zyb.qiyu.user.provider.service.IUserService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName UserRpcImpl
 * @Author zhaoyb
 * @Date 2023-12-29
 * @Version 1.0
 */
@DubboService
public class UserRpcImpl implements IUserRpc {

    @Resource
    private IUserService userService;


    @Override
    public UserDTO getByUserId(Long userId) {
        return userService.getByUserId(userId);
    }

    @Override
    public String test() {
        return userService.test();
    }

    @Override
    public boolean updateUserInfo(UserDTO userDTO) {
        return userService.updateUserInfo(userDTO);
    }

    @Override
    public boolean insertUserInfo(UserDTO userDTO) {
        return userService.insertUserInfo(userDTO);
    }
}
